Compiling Problem Speci cations into SAT
نویسندگان
چکیده
We present a compiler that translates a problem speciica-tion into a propositional satissability test (SAT). Problems are speciied in a logic-based language, called np-spec, which allows the deenition of complex problems in a highly declarative way, and whose expressive power is such to capture exactly all problems which belong to the complexity class NP. The target SAT instance is solved using any of the various state-of-the-art solvers available from the community. The system obtained is an executable speciication language for all NP problems which shows interesting computational properties. The performances of the system have been tested on a few classical problems, namely graph coloring, Hamiltonian cycle, and job-shop scheduling.
منابع مشابه
Compiling Natural Semantics - ReadingSample
Natural semantics has become a popular tool among programming language researchers. It is used for specifying many aspects of programming languages, including type systems, dynamic semantics, translations between representations, and static analyses. The formalism has so far largely been limited to theoretical applications, due to the absence of practical tools for its implementation. Those who...
متن کاملIntroducing TRIM
We present TRIM, an abstract machine capable of executing a subset of the algebraic speci cation language OBJ3. A speci cally designed compiler translates the order sorted conditional equations of an OBJ3 speci cation into TRIM code. The fact that TRIM supports order sorted term rewriting natively di erentiates it from many other abstract term rewriting machines. To obtain more e cient abstract...
متن کاملWriting and Compiling Dsp Algorithms in an Asynchronous Applicative Language
The functional programming language ALDiSP which is specially tailored to the needs of DSP system speci ca tion is brie y presented ALDiSP is based on asynchronous concepts that make it easy to specify interrupt driven con trol ow It is shown how ALDiSP speci cations can be translated into e cient code using techniques of abstract interpretation and partial evaluation By applying abstract inter...
متن کاملSpeci cation and Re nement of Finite Data ow Networks a Relational Approach
We specify the black box behavior of data ow components by characterizing the relation between the input and the output histories We distinguish between three main classes of such speci cations namely time independent speci cations weakly time dependent speci cations and strongly time dependent speci cations Data ow components are semantically modeled by sets of timed stream processing function...
متن کاملMinimal Semantics for Action Speci cations in First order Dynamic Logic
In this paper we investigate minimal semantics for First Order Dynamic Logic formulas The goal is to be able to write action speci cations in a declarative pre post condition style The declarative speci cation of actions comes with some well known problems the frame problem the quali cation problem and the ram i cation problem We incorporate the assumptions that are inherent to both the frame a...
متن کامل